package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Setter@Getter//消息明细
public class TInform extends BaseDomain{

    private String title;//标题

    private Integer toAll=0;//区分系统消息和私信,系统消息为1,默认0
    @JsonFormat(pattern ="yyyy-MM-dd" , timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date creatTime;//创建时间

    private String content;//内容

    private TInformReadRecord tif;//发送人消息以及已读状态等,管理状态
    private User inform;//发送的用户

}